package com.example.a_java.model.dto.report;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 业务图表数据DTO
 */
@Data
@Schema(description = "业务图表数据DTO")
public class BusinessChartDTO {

    @Schema(description = "月份列表")
    private List<String> months;
    
    @Schema(description = "金额趋势(按业务类型)")
    private Map<String, List<BigDecimal>> amountTrend;
    
    @Schema(description = "笔数趋势(按业务类型)")
    private Map<String, List<Integer>> countTrend;
    
    @Schema(description = "业务类型分布")
    private List<Map<String, Object>> typeDistribution;
    
    @Schema(description = "状态分布")
    private List<Map<String, Object>> statusDistribution;
    
    /**
     * 分布数据项
     */
    @Data
    @Schema(description = "分布数据项")
    public static class DistributionItem {
        @Schema(description = "名称")
        private String name;
        
        @Schema(description = "数值")
        private Object value;
    }
} 
